import request from '@/utils/request'

// 查询工单列表
export function listWorkSheet(query) {
  return request({
    url: '/business/workSheet/list',
    method: 'get',
    params: query
  })
}

// 查询工单详细
export function getWorkSheet(id) {
  return request({
    url: '/business/workSheet/' + id,
    method: 'get'
  })
}

// 新增工单
export function addWorkSheet(data) {
  return request({
    url: '/business/workSheet',
    method: 'post',
    data: data
  })
}

// 修改工单
export function updateWorkSheet(data) {
  return request({
    url: '/business/workSheet',
    method: 'put',
    data: data
  })
}

// 删除工单
export function delWorkSheet(id) {
  return request({
    url: '/business/workSheet/' + id,
    method: 'delete'
  })
}

//查询工单状态枚举
export function getWorkSheetStatus() {
  return request({
    url: '/business/workSheet/getWorkSheetStatus',
    method: 'get'
  })
}

